/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package br.com.mocamorena.persistence.dao;

import br.com.mocamorena.exception.PersistenciaException;
import br.com.mocamorena.model.Endereco;
import java.util.List;

/**
 *
 * @author Diego
 */
public interface EnderecoDao {
 
    public boolean inserir(Endereco endereco) throws PersistenciaException;
    public boolean atualizar(Endereco endereco) throws PersistenciaException;
    public boolean excluir(Endereco endereco) throws PersistenciaException;
    public List<Endereco> listarPeloCep(String cep) throws PersistenciaException;
    public List<Endereco> listarPeloLogradouro(String logradouro) throws PersistenciaException;
    public List<Endereco> listarPeloBairro(String bairro) throws PersistenciaException;
    
    
}
